package com.xjl.javacore.controller;

import org.springframework.web.bind.annotation.ControllerAdvice;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * 异常处理类
 * @author xiaojinlu1990@163.com
 * @date 2020/1/22 15:02
 */

@ControllerAdvice
public class ApiExceptionHandler {
    /**
     *
     * @author xiaojinlu
     */
    @ExceptionHandler(value = Exception.class)
    @ResponseBody
    public String xjl() {
        return "xjl11111111111111111111";
    }
}
